<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#deleteHelpBtn").click(function(){
			//alert("test");
			if(confirm("게시글을 삭제하시겠습니까?")){
				$("#deleteHelpForm").submit();
			}
		});
	});
</script>
</head>
<body>
<center>
<h1>문의하기</h1>
<table>
<tr>
	<td>번호:${requestScope.hvo.no }</td><td>제목:${requestScope.hvo.title }</td>
</tr>
<tr>
	<td>작성일시:${requestScope.hvo.datePosted }</td><td>조회수:${requestScope.hvo.hits }</td>
</tr>
<tr>
	<td colspan="2"><textarea rows="20" cols="50">${requestScope.hvo.content }</textarea></td>
</tr>
<tr>
	<td colspan="2" align="center">
	<a href="helpList.do"><input type="button" value="목록"></a>
	<a href="writeHelpReplyPage.do?no=${requestScope.hvo.no }"><input type="button" value="댓글쓰기"></a>
	<a href="updateHelpPage.do?no=${requestScope.hvo.no }"><input type="button" value="수정하기" ></a>
	<form method="post" action="deleteHelp.do" id="deleteHelpForm">
	<input type="hidden" name="no" value="${requestScope.hvo.no }">
	<input type="button" value="삭제" id="deleteHelpBtn">
	</form>
	</td>
</tr>
</table>
</center>
</body>
</html>